package com.qf.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author YDW
 * projectName:project2202_4
 * time:2022/6/17 10:32
 * description:
 */
//@Component
public class TaskDemo {

    @Scheduled(cron = "* * * * * ?")
    public void task(){
        System.out.println("任务执行了---"+new Date());
    }
}
